import request from '@/utils/request'

// 查询投产登记列表
export function listItem(query) {
  return request({
    url: '/buy/buy0006/list',
    method: 'get',
    params: query
  })
}

// 查询投产登记详细
export function getItem(iD) {
  return request({
    url: '/buy/buy0006/' + iD,
    method: 'get'
  })
}

// 新增投产登记
export function addItem(data) {
  return request({
    url: '/buy/buy0006',
    method: 'post',
    data: data
  })
}

// 修改投产登记
export function updateItem(data) {
  return request({
    url: '/buy/buy0006',
    method: 'put',
    data: data
  })
}

// 删除投产登记
export function delItem(iD) {
  return request({
    url: '/buy/buy0006/' + iD,
    method: 'delete'
  })
}
